package com.mdd.admin.service;

import com.mdd.admin.validate.commons.PageValidate;
import com.mdd.admin.validate.InvoiceContractCreateValidate;
import com.mdd.admin.validate.InvoiceContractUpdateValidate;
import com.mdd.admin.validate.InvoiceContractSearchValidate;
import com.mdd.admin.vo.InvoiceContractListedVo;
import com.mdd.admin.vo.InvoiceContractDetailVo;
import com.mdd.common.core.PageResult;

/**
 * 新建合同发票列服务接口类
 * @author LikeAdmin
 */
public interface IInvoiceContractService {

    /**
     * 新建合同发票列列表
     *
     * @author LikeAdmin
     * @param pageValidate 分页参数
     * @param searchValidate 搜索参数
     * @return PageResult<InvoiceContractListedVo>
     */
    PageResult<InvoiceContractListedVo> list(PageValidate pageValidate, InvoiceContractSearchValidate searchValidate);

    /**
     * 新建合同发票列详情
     *
     * @author LikeAdmin
     * @param id 主键ID
     * @return InvoiceContractDetailVo
     */
    InvoiceContractDetailVo detail(Integer id);

    /**
     * 新建合同发票列新增
     *
     * @author LikeAdmin
     * @param createValidate 参数
     */
    void add(InvoiceContractCreateValidate createValidate);

    /**
     * 新建合同发票列编辑
     *
     * @author LikeAdmin
     * @param updateValidate 参数
     */
    void edit(InvoiceContractUpdateValidate updateValidate);

    /**
     * 新建合同发票列删除
     *
     * @author LikeAdmin
     * @param id 主键ID
     */
    void del(Integer id);

}
